package net.lzzy.practices.web;
import net.lzzy.practices.web.handler.BusinessException;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author  lzzy_gxy on 2022/5/5.
 * Description:
 */

@Controller
public class IndexController {
    @GetMapping("/")
    public String index() {
        if(true){
            throw new BusinessException("测试业务异常");
        }
        return "index";
    }
}

